import { createApp,ref } from "vue";
export default function init(params:any) {
    createApp({
        setup() {
          const message = ref('Hello vue!');
          const count=ref(0);
          function change() {
            message.value="aaa";
          }
          function increase(event:any,num=1) {
            count.value+=num;
          }
          return {
            message,
            count,
            change,
            increase
          }
        }
      }).mount('#app')
    console.log(params);
}